<?php
/**
 * Elgg index page for web-based applications
 *
 * @package Elgg
 * @subpackage Core
 */

/**
 * Start the Elgg engine
 */
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
?>

<?php 

	$tableArray[0]["Name"]="Lenny";
	$tableArray[0]["Website"]="itslennysfault.com";	
	$tableArray[0]["Website1"]="itslennysfault.com";	
	$tableArray[1]["Name"]="Pixel Brothers";
	$tableArray[1]["Website"]="pixbros.com";	
	$tableArray[1]["Website1"]="pixbros.com";	
	$tableArray[2]["Name"]="Elgg";
	$tableArray[2]["Website"]="elgg.org";
	$tableArray[2]["Website1"]="elgg.org";
	print('<p>');
	print_r($tableArray);
	print('</p>');
	$data = get_data("select * from elgg_users_entity");
	print('<p>');
	print_r($data);
	print('</p>');
	$body = elgg_view('output/tablesorter', array('value' => $data,'tableid' => 'MyTableID'));
	//$body = elgg_view('output/tablesorter', array('value' => $tableArray,'tableid' => 'MyTableID'));

	echo elgg_view_page(null, $body);

?>

